package com.testplatfrom.project.enumproject.variable;

public enum VarableUiEnums {
    STRING("字符串"),
    LIST("数组"),
    JSON("json"),
    NUMBER("数值")
    ;
    private String message;

    VarableUiEnums(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static VarableUiEnums getByKey(String message){
        for (VarableUiEnums varableUiEnums:values()){
            if (varableUiEnums.getMessage().equals(message)){
                return varableUiEnums;
            }
        }
        return null;
    }
}
